package com.gome.base;

import com.gome.vue4j.core.AbstractVue4jComponent;
import com.gome.vue4j.core.FXMLPath;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.fxml.FXML;

/**
 * 样式绑定
 */
@FXMLPath("/base/l3-view.fxml")
public class L3StyleComponent extends AbstractVue4jComponent {

    @FXML
    StringProperty style = new SimpleStringProperty("-fx-text-fill: red;");

    @FXML
    void addBorder(){
        style.set(style.get() + "-fx-border-width: 1;-fx-border-style: solid;-fx-border-color: red");
    }
}
